Made Curse_id optional as old plugins may not have it. (Issue #100)