Fixed insert() function to allow multiple arguments