Global cam input buffer

Fix for issue #2 (needs testing)