Fixed duration so it does not detect negative intervals.