Got it working. Only thing left is input validation/machine selection