Implemented findObjects function