Added code to print stderr