Adding option to ensure https