-wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S"
-sleep 0.5
-wget -q -O $OF.show.xml "$H?command=show&session=$S"
+if [ "$SETTINGS" != "" ] ; then
+ wget -q -O $OF.settings.xml "$H?command=settings&session=$S&$SETTINGS"
+fi
+wget -q -O $OF.search.xml "$H?command=search&query=$WHAT&session=$S"
+sleep 1
+wget -q -O $OF.show.xml "$H?command=show&session=$S&sort=relevance&start=0&num=100&block=1"