Adding a wrapper script and fixing error code format