Changed select_arrays. Not yet ready.