Simplify ASSIGN code