Added logger

Logs the result each time