Added code to make use of mouse event functionality from Peanuts.