Created basic stream structure and loop skeleton