Added execution of migration and cleaning up of assets.

Sending this for review.