Added new argument -ct to allow the user to specify the caching time