Change data type of received and sent from int to long