Updated version generator method