Updates to migration and karma script