Added ability to specify duration of instance when launching