Added ajax callback for intervls.