Added Context to emulate node behaviour. Fixes #7.