Added a context parameter to the log messages.