Rewrite to most of VersionChecker and the php script