Added debug output to actions