Rewritten, no global spamming.