Replace hard coded values with enum values.

Closes #43