Modified selected_name to accept simple dotted expressions