Removed dead code that was for debuging or old rendering.