Added debugging stmts to get to core of whats wrong.