changed check from every second to every 20 minutes