Fixed an issue with identifying valid placement locations, added code to identify orphan groups (though it does not yet release them).