Reference checking working