Move misc procedures into their own file.