WIP: Single thread solution
WIP: broken argument passing