Master Logic Gate