Make this less magical and more readable.