Added some rudimentary checking and version dependency resolution.