Added support for calling methods from within a setTimeout