Adding parameter to be able to manage errors