added calling function and a time.sleep