Add support for item input and output; Bug fixes; Add redirecting input to the block;