Removed console logging.
Second element expected to be of type number.
More consistent parameter naming.