Replaced MODE_ENCODE and MODE_DECODE with an anonymous enum. ^_^