Trying to resolve out of order type declarations.