Changed internal functions to be per stuntsheet, instead of per page