Pass the settings dictionary instead of error_string

This will make it to add more settings in the future.
Rename variable for clarity
Update TODO