Small security fix
Security fix + Added quit and setRes command