Moved logging to the implementation.