Infinite loop bug.
WIP