Refactored packename, added validation messages.