Put comma in the result if the result is larger than 3 digit.
Change to long from int :(