Added function to insert values