Change return type from int to long int