Bug fixes and improvements to stability.