Some code clean ups and logging for asterisk