Made the module run itself on initialisation instead of returning a function.