Some preliminary stuff for the backup overhaul.