I originally did that but the code seemed slightly less maintainable so I changed it to this. Anyhow the whole web-backgrounder thing seems like it needs revisiting.