Replaced manual version comparison with version<