Added support for migrating to 'max' version

Apologies for the whitespace changes.