Add stderr logging