Do we need to do this every iteration (every few seconds) or can we keep this open and do the initialization only once (or re-do it when needed)?