Added in function definition and function itself.