Added (finally!) the code which actually does something.

BOILERPLATE? HELL YEAH! SUCK ON THAT PROPRIETURDS!!!!!!!!!!!