Added some json stuff and basic search pattern