Stderr implementation added... more testing is needed