Finished wrapper/inerstion of error code