A bit of reflection and some unsafe magic