Proper use of modes enumeration.