Implemented input transaction index as optional flag