Automated machine tool