Remove stdout flush for testing