Implemented diff for all modes. Basically tested diff.