I'm using that on three different places, so I wanted to have the logic on one place.