Removed an errant debug statement; fixed a minor status variable scope issue