Change structure to have mixed mode, vhost and log looping