Where and how did it fail in the procedure which I've written?