Partially rewrote rendering/chunk handling