Added apply to method