Refactored solution for jugglingasync