Set parameters before calling before_prepare