Add early version of function.