Loading and Routing Problems for Schedulability in a Flexible Manufacturing Environment