Added validation to swarm level parasing.