Passing data as a parameter to before_add method to enable customization