Changed from unsigned char to size_t for property map copies