Added support to set/update interval via event listener