Refactored code, introduced utils class inside digism