Added left/right front/back switch. Refactor