Added usage of enum