Rename variables. Be more careful with shmem.