Wire the enum at the right time