Changed domain handling.
Merge pull request #8 from tuomasvapaavuori/add_rollback

Changed domain handling.