Added debugging code for getting objects