Finally fixed a bug in rendering optimizations. Also rewritten Coordinates a bit.