Fixed loads of stuff, failing rowCounts, failing HTML emails, etc...