Use Thread inner classes