Changed to use ctime instead of mtime.