Changes to support error pages, removed do spawns.