Refactored the manvsmagicd