Automatic tube cleaning