Added code for debugging purposes