Added selectAll option (fixed bad copy paste)