Add object handling to level loading