Added hack to disable SSL if necessary