Set up RTOS