Up to the point where I need to implement main algorithm