Added name parameter to Gate class.