Added initialisation for mail and log services.