Copied WPMUC version of the framework.