Adding search functionality.

Creating better base repository functionality.