Add initial implementation of writing items