Add logging to ensure logged to stdout properly