Adding Logan's results.
Reimplementation.