Make diff into a module method