Made getting the URL vars more efficient.