Added part of an improved logging system.