Fixed deletion issues and implemented client part for adding new intervals.