Codeviewer feature security #291

Added security functions