Added fragment scan functionality