Added a real logging implementation.