Simplified Due code a little.