Added check for command source.