Adding end condition.