Bugfix: global name 'now' is not defined