593 Added functionality to invoke plugin on onAfterDispatch event
Added languages and fixed returning value