Move find_object and find_attr to new seperate file