Removing spurious output