Mostly implementing logging

But also some deterents to prevent people from fiddling with things that
shouldn't be fiddled with. (Not like they're hard to remove though)