Visibility of generateWaypoints changed for testing