Added time.sleep parameter when converting to minutes