Updated to work with datamapper backed
models.