Version management added. It could still use more testing.