Make it mongoid friendly.