Handle configuration more dynamically.