Moved inputData and smaller methods into Machine