Made reading config file synchronous to avoid ugly code since it has to happen before anything else anyway.