Stderr handling added.