Added transaction timeout and moved transactions to per script for batch runs.