with the intention of doing sth
so as to do sth
We went early so as to get good seats.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition