Is it a standard way to do it? Is there some common library doing it?