Extra debugging to find out what's going on inside unwrap