Getting rid of extra imports and minimising code by using this utility class.