Dynamic ref type.
Remove unused labels.
Fix menu.