Collapse_key is an optional parameter. Fixes #1.