Enable trim/discards support

Fixes #47