Added argument to specify seconds between measurements