Added logic preventing time in mode percentage greater than 100
Changed max value of time percentage up down to 100.