Replaced int with enum