Strip out bad functions