Add transparency control routine