We need another way of doing this, looks like obscure magic.