Magic plugin inspired by Merlin.