Adding support for input/output options.
Fixing a problem of calling runtime and it being nil.
Merge branch 'output_support'