Implemented logic for GPRS connection