Fix and update intervals library.