Changed scan action to the right one