Performance and reliability improvements

1.9.1·

General performance and reliability improvements.