Fix packages and add warnings.