Remade config function

Remade config function in order to get one option from the configuration