Added data migration handling. Moved ec2Type into an abstract method for handling backward compatability.