Added abort to scanning