Updates to plot light effect and other related functions