I'm pretty sure there is smarter way to do that. Let's ask @fabi1cazenave about it.