PrepareParameters method