Split extraction of variables and page population into separate functions