First try on network implementation.