I don't like to depend on implicit order of enum members. I will change this to two if conditions.