Taylor and Gloucestershire agree deal