Some checks

Added checks against potentially harmful code