Updated error estimation, works w external data