[TASK] Moved function to utils