Refactoring: changed getMicrotasks signature