Fixing issues from last commit: restored input and occlusion queries