Fixed previous commit with pointer return