Added check to catch non-number and issue error.