Additional JS callback functions added for plug ability.