Added initial toggle and motor functionality