Moved admin functionality into a module