Better implementation of module config