Remove unused stuff.
Switch to our own logger.