Made modifications to enable connection with Kannel