Implements https connections
Fixes lag on displaying correct default period