Added support for changing module names in v5 (legacy support)