Deleted errorconsole and use timer and not thread