Changed implementation to use object keys instead of int symbol codes.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>