Removed giant commented code block at the bottom. Still an idiot.