Add measuring performance.
Add more debug info.