Avoiding NPEs