Add prototype of timelapse capturing loop