Moved mangleCommand() above mangle()

The order matters? I will punch python in the face.