Added function for creating time container