Adds a debug wrapper and logging to the harvest method