Implemented FreeRTOS tasks.