Fixed market time offline look into past not needed. Added debug output.