Added ability to dispatch actions manually.