Made it so that only objects cannot be dependencies.