Production scheduling and control