Use better enum declaration.