Network code wrapped into async operations