Added option for using eithermtime or atime