Moved diff to global