Allow passing reference/object on set(), return output object