Add debug output to figure out shift behavior