Changed CreateOrGateBlock to private method