Add version numbering logic