Algorithm enhancement