Remove globals, change say to alert.