Move utilities into different file.