Modify: Moved checkrenewal function from function.php to renewal.php