- Use correct MIME type
- Additional debug messages
- Cleanup