Simpler testing code.