Slight optimization to GOL algorithm.