More work on selection. Not working yet.