Convert global variables into list in forward. Commented code.