Use enum instead of int.