Can someone check if it works for you and doesn't cause any troubles?

pastebin.com/X2BAd241