Added transition speed variable