Added scan function

Added action logic to fleetCommand