Add search fields and basic search function.