See private comment for details