Added apply parameter to set