Modified RapidTask (Added WAIT_AND_CALLBACK).