Added inactivity option.