Changed references to nullptr to NULL