`handler` is a global variable? Are you sure?