Add GetVersion function.