Closes #1 with implementing interval generation.