For your reference, this is the old code.