Don't use subject in before clause
Use within.(n)percent_of