Potential bug fix: ontime can't be negative