Fixes #4695: Passes more info to input/access and access hooks