Futher development of parallel version.