This feels less wrong and but still dirty, but it works.