Added error handling for numbers that are too large