Started working on a function.