Added Logging package.
Simplified version which still won't work.