Refactored code to use Ruby 2.x.x keyword arguments.