Added code for debugging.