Replacing some System variables and restricted Class