Added jimi-c's suggestions, changed to module.run_command()