Implement insert()