Added local check to cli