Helper methods for Gate