Implemented multi-tenant mechanism.