Don't use events, simply define fn above and call it. Or move the above code here.