DDF-369 Updated module so that it can run inside of admin ui