Changed pointer to reference.