Basic scan command implementation.