Rename variables called 'code' to avoid shadowing warnings