Debugging more back testing code