Closing cursors.
Fixing regression.
Adding report view.