Changed to shape based with required transitions.
Fixed math functions.
Modified Radius functions.