Checked setInterval to setTimeout to allow variable intervals.

Also, set timeout to period from new timeToCheck option