Moved remaining global variables into the conf object
Order functions by name