Added debug printing to network module