Added getVersion() function