- Removed the validity flag mechanism, improved algorithm to work without it