Made alg go up and down