Added Sleep to Thread class