Changed Andgate to BaseBlock