Added Utility and moved there needed helper functions