Added option to only generate the latest version