Added return to function definition to avoid error