- Rework preferences
- Support API 31
- Small bugfixes