Inverted pb and spb and added source in debug message