Slightly changed fillHours function