Fix indentation.
Add a register informtion query routine and cache the various attribute query function results.