Finally add a simple logging mechanism.