Adds optional domain and ssl checks