Added a more sophisticated version mechanism.
Added a more sophisticated version mechanism.