Use enum instead of string to keep capyllar type.