Move set-offline function to the clomacs project.