Amend code