Added the contents of function