Add debug log statements to check network activity