Bug fix; added 'begin'; debugging improvement.