Added ensure => present to timeperiod