Debugging maintanenance script