Implemented first gate movement