Edit how cost is handled in edit()