Bug Fix for multiple lines
Batch ref moved to front of process
Batch ref moved here
Cleanup