Added basic search and protection(not anywhere near actual protection yet).