Added threshold parameter to prevent user results to be shown before the user has typed anything