Trimmed code to bare minimum.

Removed all unused code.