Add lambda and apply functions