Move quickdiff into a separate file