Added 'direction' param
The context can now be altered during the BeforeRenderEvent