Added neglected distances from middle.
Made enable and disable module protected to prevent mistakes.
Wrapped mode as a safe mode.