Hm will have to take a look at the code as a whole... but to me it seemed that `@percent` would never hold a value other than 0 or 100.