Add possibility to use also path to file