Added FetchSleep and ParseSleep functions