Modify appointment code.