Implemented waiting-time mapping from millis to percent.