Converted t_wait to float()