Added ptarget_space for testing.