Fixes #11. Added blocking functionality.