Finished project. Jobs function issue was due to shallow copying a C string rather than deep copying.