NetState prototyping. Does not compile probably.