This is a copy-paste from other parts of the (older) code.