Add Tyler's NumberFormatException error handling