Closed #75

Also fixed the wrong cast. Line 49. It used to be TimeBlock.