Optimized Rail Operations Through Automation