Uncommented the if(err) line.