Remove unused variables
Use 'count' instead of 'times'
Use options hash instead of keyword arguments

We can't use reserved words as keyword arguments and I want to use
'while' and 'until'.