Minor changes to gen_shm_data.