Refactored code and created swarm bots