Add rotation and flip directions.