Updated module to be modular instead of a script.