Another sequential implementation. Something missing.