Changed function's name from "checkfiles" to "CheckFiles"