Added optional boolean to disable SSL