BMRG-000: changes for debug and fnterface.