Add gates to master