Updated function content