Debug: add read code