Added check for previous