Switched to piston event loop in example