Fix problems

Troubleshoot slowness, crashing and error messages.