Removed testing code from core.