This looks a lot like the changes @drkitty made in https://github.com/OSU-Net/cyder/pull/48.