Improved some log messages and added a resource refresh.