Refactor init to use a passed version number