Stop endless looping. Fixes #185