Fixed number format exception that used to be caused earlier because of overflow sometimes by using Long instead.