How does magic work?