Use enum instead of const