New version of magic owl function