Added input streams, implemented build