Function interface for finding elements