Updated parallel version