Bug handling, and continuous loop