Network avail fix

Fixing #24.