Add more debug output to find problem with SF order