Add logging for debugging purposes