Add clear. Fixes #371