Add repeat filter, closes #3