Removed gate code