Added AKWaypoint class for better path handling.