Add filter bias function
Add distances stuff