Added flow control script.
Added input/output script.