How to simultaneously run two routines?