Added read nearest option