Text this: Dynamic Scheduling and Preventive Maintenance in Small-Batch Production: A Flexible Control Approach for Maximising Machine Reliability and Minimising Delays