Added finite check on number.