Pointers are set correctly