Added connection check to project