Various changes

- Working around new container for CRecord
- Adding password generation