Removing unused (and wrong) function
Fixed networkOnMainThread bug