Thread error solved.