Adding transitions