How to keep your references happy