Added Validation for empty, debug etc.