Added ignore duplicate key error option