Added the option to enable/disable automatic positioning.