Basic PLY write functionality.