Added option for interval and memory setting on listener