Update machine_service.rb