Allow filtering by ref