Update copy on error messages
Pass ref variables by object