Adding "isNewer" function