Added priority operations and fixed bags with inc