Updated functionality of gradient effect