Make constants more idomatic

I love this API.  Thanks for writing it.