Changed uid to id, added support for version check