Data dump

A lot of slightly more optimised but still horrible code.