Increase stack size, add logfile.