Some fixes. Subtract time from interval.