More work on gates