Clone pulled out to utils module