Updated, added getVersion function