Added code to handle getting signin periods