Magic number is removed for a value from settings. Error logger is added.