Ive had to answer this somewhere else a while ago, Its a bit more complicated ... idk if there is an easier way by now Check here: