Fixed set of security issues in the code.