Implemented old version detection. Fixed #138.