Automation of milling machine