Ensuring references are kept