added more functionality to the threshold scan application