Added toggle for debugging.