Prepared base gateway class