Implemented wrappers for task_create and event_wait