Removed bunch of dead code.