Merged changes from 1.6.5 to 1.6.6

Don't merge this pull request until QA is complete!