Implemented global data scoping. Also made error pages better.