Added the working versions of the gates