Changed a variable to a pointer