Cleaned package preview code.