Added check_exists function and version test