Added logger functionality.