Modify TimyMT's wait(), now it returns the result of waiting