Original version is more efficient and semantically equivalent.