Copying over ancient code.