Working sequention version. To do parallel version