Made initial function call synchronous again for tests.