Added find by attribute method. Needs refactoring for use throughout program.