Changed to use stdint types.