* Does not save profile in the SetFilter function. * Saves profile on exit (exit from main loop). * Clears filter string if it is found to be invalid in the Apply function.