Switched controller over to task-based asynchronous implementation