Changed clear trailing function.