Created functional apply variant.