Added a search method, and tweaked the setDefaults method