First try at handling target magic