Worked out that ugly hack