Batch State is starting to work! Need to put information into it and then write it to a file