Fix read registers and add extra info to register query