Changing code for multisite option