Full functionality.

Tied most things together, all loot functions working.