Replaced uint64_t with apropriate types.