Combined script and result page code thing