Added self arg to set_timeout

Minor bug fix.