Added Time Sleep Function.