script executes regularly

added function that calls itself every 5 minutes