Improved mouse event handling scripts and the Life example