Thread approach - not working.