Added 'retainSelection' option to select method