Changed int64 types to int. Max value returned by the API is unlikely to
cause an overflow.