Make the code more simple by using waypointList's getter()