Moved get_page_smart in stream to make it the function flow clearer.