Adding some inline documentation. The horror. The horror.