Changed method delete to remove. Fixes #1