Changed some pointer variables