Reorder functions
Simplify arguments passed to Robot