Updating preseed file and deleting unused functions