Adds automation flipping.

Implements #1289.
formatting :) `if ( min < 0 )`