Move machine into lof.py