Added intentservice to handle network traffic.