Use set as function