Improved code. Supports poolless, which will just create new and dispose
after execution for each run. Added update option to stateful instead of
just disposing. Dispose interval now optional. Dispose and update not
mutually exclusive.