Covers more activation cases. I initially tried to use onAction, but that didn't seem to work at the time, but I must've been mistaken.