Added apply decorator