Added function and html