Hotfix: use timeouts for waiting of callbacks