Various bug fixes and balance tweaks.