Improve the main algorithm