Getting sidetracked may actually help you.