Added auto-selecting to the output