Setting up the component structure for stream