Added check for git