Fixed bug where generating  lesser intervals
Refactored wrong maple commands