Fixed status code.
Implemented output code.