Properly initialize 'failures' variable.