Updates CodeAddress function