Try returning value as an int or double.
Minor change.