Added mdule global to avoid rereading config each time it's needed