Return error level to indicate if it was succesfull or not