Implemented pan tracking.