Added functionality for tracking path