Adding terms and conditons