Made Algorithm non-android