Creating parent if one doesn't exist, and assigning that to package