Implementing pause/resume for global and local inputs.

Fixes #492