Added scan mode for reading