Use a global variable instead of the fixed 10000. Change the global variable to what you want and call the function again.