Code optimization. Changed interval to 30 seconds.