Adding scan command back in