Add choose_nodes/1, and attribute functions