Adding in some things so that I can schedule this to run every 5 minutes