Changed read logic.