Defined the find and get functions.