Fixed VCS check and which function.