Added permissions.
New internet checking mechanism.