Make permCheck not static.
Remove debug here