Use enum to replace string to be more strict.