Added required fields to Batch table
Made CopyData more error proof