Added finite check on number.
Updated version to 0.2.2.