Move the endif to the correct line so we don't have warnings about
unused statistics variables.