Fixed slow-down problem. It was due to a superfluous line of code.