Reverted networking code and made standalone version.