Setting up infrastructure for some questionable error-handling.