Moved utils in their own file.