Added tracking variables for pointer