Added versioning support. Functionality untested.

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss