Initial algorithm work done