GOt SAP and Outcast sortof working

Getting wrong answers in some cases. The case of query string might
have something to do with it.