Added conditional for only one sendUrl