Tidy up the code
Add response content to debug log on urlmap call