Deleted debugging lines and nesting more.