Improving configs.
Migrating some code from current blog.