Small API

Added small API to change running state. (Specially for external modules using the farmer)