Make version static variable, add checking.