Support for network profiling and bug fixes for return values