Added cage and foreground.
Reordered some vars.