Added settimeout method