When you understand why certain tasks matter youre in a better position to set prioritieswhich in turn will help prepare you to transition into management

What is the correctly punctuated version of this sentence?
When you understand why certain tasks matter, you're in a better position to set prioritieswhich in turn will help prepare you to transition into management.