Added support for command based reward giving