updated script to run once every 2 minutes (approximately)