Added helpter function