Wrap global instance.
Better error reporting.
Started implementation of settings loading.