Moved method into a utilities module.