Added both reverse direction and flip motors functionality.