Changed where the inherit bit is set and disabled recursion for sharing.