Added the dirty-bit check
Merge branch 'master' of https://github.com/Ricky54326/CS354