Added logarithmic alhorithm for running, but without GUI