Removing unused outputs