Now solves stage restrictions. Still need to add customized quasiquotes
to make it more beautiful