Code to drive my useless machine