Corrected sleep, updated constructor to call API on instantiation