Remove intermediates