Added a Controller and sub controllers. Gates can now be moved