Making the compartment type selectable.