Fixing issue #291 (WIP)

You have to provide a function to remove as second arg.