*Added Advanced Search
*Changed decode to encode