Added submit script and made some changes to the query script for testing.