Added a config option for autoOrient