Code ameded for debugging.