Don't remember what I did but apparently I haven't commited the current
codebase so whatever.
Paste code overhaul.