Moved connection check to jar. Added no network handling.