Implemented concurrent version.