Temporarily moved utils into a separate file.